package org.jeecg.glr.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.jeecg.glr.entity.GlrSensor;
import org.jeecg.glr.entity.GlrSensorData;

import java.util.List;
import java.util.Map;

/**
 * @Description: 传感器数据
 * @Author: jeecg-boot
 * @Date:   2020-02-11
 * @Version: V1.0
 */
public interface GlrSensorDataMapper extends BaseMapper<GlrSensorData> {

    @Select("${sql}")
    List<Map<String, Object>> getListBySql(@Param("sql")String sql);

    @Update("${updateSql}")
    int updateSql(@Param("updateSql")String updateSql);

    @Delete("${deleteSql}")
    int deleteSql(@Param("deleteSql")String deleteSql);

}
